<%@page contentType="text/html; charset=utf-8" language="java" %>
<%@page import="bean.*" %>
<%@page import="biz.*" %>
<%
Search s = new ItemBiz();
if(session.getAttribute("uid") == null){
	out.print("<script>alert('请先登录！');history.back();</script>");
	response.sendRedirect("login.jsp");
}
User user = UserBiz.getUserByUid(Integer.parseInt(session.getAttribute("uid").toString()));
%>
<html>
	<head>
	<title><%=user.getUname()%>的个人页面</title>
	<link href="css.css" rel="stylesheet" type="text/css">
	</head>
	<body>
	<jsp:include page="/head.jsp"/>
		<center>
		<div id="u_title">
		<div><span id="uname"><%=user.getUname()%></span>&nbsp;
		<a href="mailto:<%=user.getUemail()%>"><%=user.getUemail()%></a></div>
		<span id="uinfo"><%=user.getUinfo()%></span><span id="uid">用户ID-<%=user.getUid()%></span>
		<hr/>
		</div>
		</center>
		<div id="mainpage">
		<div class="leftbar">
		<fieldset class="u_fieldset">
		<legend id="u_legend">用户操作</legend>
		<ul id="left_nav">
        	<li><a href="additem.jsp?l=0&p=0&r=0">创建新词条</a></li>
        	<li><a href="updateuser.jsp">更新账户信息</a></li>
        	<li><a href="logout.jsp">退出登录</a></li>
        	<li><a href="deleteuser.jsp">永久删除账户</a></li>
        </ul>
        </fieldset>
        <fieldset class="u_fieldset">
		<legend id="u_legend">快速目录</legend>
		<ul id="left_itemnav">
			<%=ShowBiz.RootListtoLink(s.UserSearch(user.getUid()))%>
        </ul>
        </fieldset>
		</div>
		<div class="rightbar">
		<%=ShowBiz.RootItemtoHtml(s.UserSearch(user.getUid()))%>
		</div>
		</div>
		
	<jsp:include page="/copyright.html"/>
	</body>
</html>